import request from '@/router/axios'

export function fetchList(query) {
  return request({
    url: '/ems-api/ems/productRebates/listProductRebates',
    method: 'post',
    data: query
  })
}

export function setUpProductRebates(query) {
  return request({
    url: '/ems-api/ems/productRebates/setUpProductRebates',
    method: 'post',
    data: query
  })
}

export function updateProductRebates(query) {
  return request({
    url: '/ems-api/ems/productRebates/updateProductRebates',
    method: 'post',
    data: query
  })
}

export function delProductRebates(query) {
  return request({
    url: '/ems-api/ems/productRebates/delProductRebates',
    method: 'post',
    data: query
  })
}

export function rebateQueryPro(query) {
  return request({
    url: '/pms-api/pms/product/rebateQueryPro',
    method: 'get',
    params: query
  })
}